snapashot: Optimize rounded clip nodes
authorTimm Bäder <mail@baedert.org>
Fri, 1 Dec 2017 07:04:31 +0000 (08:04 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 1 Dec 2017 07:14:01 +0000 (08:14 +0100)
commitc42e0260589e9664d7d71c000002814fe71fcd4f
tree9ea6f433bfda82d0acf27641294e58f4d353c7c7
parent94184eda4214b3162eead554212443b3a0f50481
snapashot: Optimize rounded clip nodes

If the rounded clip node is rectilinear, we can simplify it to a normal
clip node. If not, we really need to use a rounded clip node. In both
cases, we can do the same check we do when collecting normal clips and
avoid the clip node altogether if the child node does not get clipped
anyway.

This saves between 3 and 10 nodes in the widget factory, depending on
what page gets rendered.
gtk/gtksnapshot.c